﻿using System;
using System.Numerics;

class NFactoriel
{
    //Exercise 10.
    //Write a program to calculate n! for each n in the range [1..100]. Hint: Implement first a method that multiplies 
    //a number represented as array of digits by given integer number.


    static void Main()
    {
        //initialize the array
        Console.Write("Enter N within the range [1..100]:  ");
        int n = int.Parse(Console.ReadLine());

        for (int i = 1; i <= n; i++)
        {
            Console.WriteLine(NFactorial(i));
        }
    }

    private static BigInteger NFactorial(int n)
    {
        BigInteger nFactorial = 1;
        for (int i = 1; i <= n; i++)
        {
            nFactorial = nFactorial * i;
        }
        return nFactorial;
    }
}